package co.com.smart.persistence.entity;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import co.com.smart.persistence.entity.dto.SmartMaestro;
import co.com.smart.persistence.entity.util.AbstractFacade;

/**
 * Session Bean implementation class MaestroFacade
 */
@Stateless(name = "MaestroFacade",
		   mappedName = "ejb/MaestroFacade")
public class MaestroFacade extends AbstractFacade<SmartMaestro> implements MaestroFacadeLocal {

	@PersistenceContext(unitName = "SmartServicesPU")
	private EntityManager em;
    /**
     * Default constructor. 
     */
    public MaestroFacade() {
       super(SmartMaestro.class);
    }

    @Override
    protected EntityManager getEntityManager() {
    	return em;
    }
}
